<?php
   /*
    * 前台新闻
    */
   class News extends Info{
   	
		public function __construct(){
			parent::__construct();
		}
		
		public function InfosList(){
			parent::InfosList();
		}
		
		public function InfoContent(){
			$categoryid = intval($_GET['categoryid']);
			$category = DB::fetch_row("select *from `bb_category` as C left join `bb_category_setting` as CS 
			            on `C`.`categoryid`=`CS`.`categoryid` where `C`.`categoryid`='{$categoryid}'");
			$path = $category['path'];
			$infoid = $_GET['infoid'];
			$info = DB::fetch_row("select *from `bb_info_news` where `infoid`='{$infoid}'");
			$this->frontSmarty->assign("info",$info);
			$this->frontSmarty->display("Html/{$path}/HeaderGroup/Index".$this->terminal.".html");
			$this->frontSmarty->display("Html/{$path}/InfoGroup/Index".$this->terminal.".html");
			$this->frontSmarty->display("Html/{$path}/FooterGroup/Index".$this->terminal.".html");
		}
	
   }



?>